package com.etoak.common.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 读取 upload-service.yml 中的配置
 */
@Data
@Component
@ConfigurationProperties(prefix = "image")
public class ImageProperties {

    /** 上传目录 */
    private String uploadDir;

    /** 访问地址前缀 */
    private String mapping;

    /** 图片类型 */
    private List<String> types;
}
